
/**
 *  
 */
var AboutSNAppWindow = new Class({
	Extends: layout.SNAppWindow,
	
	options: {
		taskbarAnchor: 'about_snapp_anchor',
		taskbarAnchorMin: 'about_snapp_anchor_min',		
		taskbarAnchorFocus: 'about_snapp_anchor_focus'
	}
});

var AboutMyOSWindow = new Class({
	Extends: layout.SNAppWindow,
	
	options: {
		width:'600px',
		height:'400px',
		taskbarAnchor: 'about_myos_anchor',
		taskbarAnchorMin: 'about_myos_anchor_min',		
		taskbarAnchorFocus: 'about_myos_anchor_focus'
	}
});

var about = {
	snapp: new WindowGroup({
		uri: 'content/public/about/snapp/',
		pages: {
			0:'0.html',
			1:'1.html',
			2:'2.html',
			3:'3.html',
			4:'4.html',
			5:'5.html',
			6:'6.html',
			7:'7.html',
			8:'8.html'
		},
		titles: {
			0:'SNApp Intro',
			1:'How It Works',
			2:'My Database',
			3:'Templates',
			4:'JavaScript',
			5:'Security',
			6:'Integrity',
			7:'Advantage',
			8:'Summary'
		},
		
		windowClass: AboutSNAppWindow
	}),
	
	myos: new WindowGroup({
		uri: 'content/about/myos/',
		pages: {
			0:'0.html'
		},
		titles: {
			0:'MyOS Intro'
		},
		windowClass: AboutMyOSWindow
	}),
	
	notify: function() {
		req = new Request({
			url: snapp.getURL('snapp_util')+'?action=mail.MailingListRequest',
			onComplete: function() {
				$('notifymespan').set('html','Got it.  Thanks for your interest.');
			}
		});
		req.send('email='+$('notifyme').get('value'));
	}
	
}

about.snapp.finish = function() {
	this.destroy();
	tutorial.snapp.begin();
};

about.myos.finish = function() {this.destroy();};
